from django.shortcuts import render
from django.http import HttpResponse
# Create your views here.
from django.views import View

class IndexView(View):
    def get(self,request,*args,**kwargs):
        return render(request,'index.html')
    def post(self,request,*args,**kwargs):
        return HttpResponse('post请求')